package com.jgsu.farm.entity;

import lombok.Data;

import javax.persistence.Table;
import java.io.Serializable;
import java.util.Map;

@Data
@Table(name = "abioticstress")
public class Abioticstress implements Serializable {
    private Integer abioticid;

    private Integer stresstype;

    private Integer cropid;

    private String harm;

    private String symptom;

    private String control;

    private Integer symptomimage;

    private Map<String,String> map;

    private StressCategory stresscategory;

    public Abioticstress(){};

    public Abioticstress(Integer stresstype, Integer cropid, String harm, String symptom, String control, Integer symptomimage) {
        this.stresstype = stresstype;
        this.cropid = cropid;
        this.harm = harm;
        this.symptom = symptom;
        this.control = control;
        this.symptomimage = symptomimage;
    }

    public Abioticstress(Integer abioticid, Integer stresstype, Integer cropid, String harm, String symptom, String control, Integer symptomimage, Map<String, String> map) {
        this.abioticid = abioticid;
        this.stresstype = stresstype;
        this.cropid = cropid;
        this.harm = harm;
        this.symptom = symptom;
        this.control = control;
        this.symptomimage = symptomimage;
        this.map = map;
    }
}